parser grammar C51;
import C;
import CVocab;
options {
	output=AST;
	language=Java;
	ASTLabelType=CommonTree;
}
tokens {
	INTERRUPT;
}
function_body scope Table;
@init{
	$Table::name="Function scope";
	$Table::types=new HashSet<String>();
}	:  ('interrupt' irq=DECIMAL_LITERAL 'using' reg=DECIMAL_LITERAL)? compound_statement
			-> ^(INTERRUPT $irq $reg)? compound_statement
	;